<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <style>
        form{
            max-width: 400px;
            height: 300px;
            background-color: rgba(247, 247, 247, 0.7);
            /*border: 1 solid #E4E4E4;*/
            margin: 100px auto;
            color: black;
            border-radius: 5px;
            padding: 25px 45px;
        }
        body{
            background-repeat: no-repeat;
            background-image: url(../photo/login.jpg);
            background-size: 100%;
        }
        div{
            width: 100%;
            height: 35px;
            line-height: 35px;
            margin-top: 50px;
            position: relative;
        }
        input{
            position: absolute;
            right: 80px;
            width: 60%;
            height: 25px;
            line-height: 25px;
            border: 1px solid #DADADA;
            color: #888;
            outline: none;
            font-size: 12px;
            padding: 3px 3px 3px 5px;
            box-shadow: inset 0 1px 4px #ECECEC;
        }
        input[type="submit"]{
            width: 50%;
            height: 40px;
            line-height: 15px;
            font-size: 15px;
            background-color: #b5ccf3;
            border: none;
            box-shadow: none;
            border-radius: 10px;
            color: #FFF;
            position: relative;
            top: 50px;
            left: 50%;
            transform: translateX(-50%);
        }
        input[type="submit"]:hover{
            cursor: pointer;                          /*手型*/
            background-color: rgb(139, 205, 246);
        }
        a{
            width: 180px;
            display: block;
            margin: 80px auto;
        }
    </style>
</head>
<body>
<form action="login.php" method="post">
    <div>
        <label for="name">用户名：</label>
        <input type="text" id="name" name="name" placeholder="请输入用户名" required>
    </div>
    <div>
        <label for="pass">密 &nbsp;&nbsp;&nbsp; 码:</label>
        <input type="password" name="pass" id="pass" placeholder="请输入密码" required>
    </div>
    <input type="submit" name="login" value="登录">
    <a href="register.html">还没有账号，注册一个</a>
</form>
</body>
</html>